<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %><head>
<trans:initPage module="findloc" />
<link rel="stylesheet" href="<html:rewrite page="/alf.css" />" type="text/css">

<html:html>
<head>
      <script language="javascript">
            function make_layer_visible(layer) {
                  layer = document.getElementById(layer);
                  if (!layer) return;

                  if (layer.style) {
                        layer.style['visibility'] = 'visible';
                  } else {
                        layer.visibility = 'visible';
                  }
            }
      </script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
      
<div id="loading" style="position: relative;visibility: hidden;height:50px;width:50%;left: 25%;top: 5%;text-align: center;vertical-align: middle;border: 1px dotted;background-color: #f2f2f2;z-index:4;" class="text_searchbold"> 
  <br>
  Loading...<br>
  Please wait<br>
</div>
      <html:form action="/location/finder">
      <html:hidden property="field_changed" value="" />
      <table width="90%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#3399CC" class=text_searchbold>
            <tr bgcolor="#3399CC"><td class="textalb">
                  <trans:showPageMessage label="findloc.searchforaloc" /></td>
            </tr>

            <logic:present name="search_failed">
            <tr bgcolor="#FFFFFF">
                  <td class="textalb" style="color:red;">
                 <trans:showPageMessage label="findsec.srcfailedtryagain" />
                  </td>
            </tr>
            </logic:present>

            <tr bgcolor="#FFFFFF">
                  <td>
                  <html:text property="what" styleClass="BACKGROUND-COLOR: #3399cc; BORDER-BOTTOM: #000066 1px solid; BORDER-LEFT: #f2f2f2 1px solid; BORDER-RIGHT: #000066 1px solid; BORDER-TOP: #f2f2f2 1px solid; COLOR: #ffffff; FONT: 10px Verdana, Arial, san-serif" />
                  <input type="button"
                        class="buton"
                        value="<trans:showPageMessage label="findloc.search" hide_link="true"/>"
                        onclick="make_layer_visible('loading');this.form.action.value='Search';this.form.submit();" />
                  </td>
            </tr>

            <logic:present name="location_form" property="locations" >
            <logic:iterate indexId="i" id="loc_item" name="location_form" property="locations">
                  <logic:present name="loc_item" property="country" >
                        <bean:define id="country" name="loc_item" property="country" />
                  </logic:present>
                  <logic:present name="loc_item" property="region" >
                        <bean:define id="region" name="loc_item" property="region" />
                  </logic:present>
                  <logic:present name="loc_item" property="judet" >
                        <bean:define id="county" name="loc_item" property="judet" />
                  </logic:present>
                  <logic:present name="loc_item" property="oras" >
                        <bean:define id="town" name="loc_item" property="oras" />
                  </logic:present>
                  <logic:present name="loc_item" property="localitate" >
                        <bean:define id="village" name="loc_item" property="localitate" />
                  </logic:present>
                  <tr bgcolor="#FFFFFF">
                        <td class="text_search">
                        <html:radio property="selected_index" value='<%=String.valueOf(i.intValue())%>' >
                        <logic:present name="country" property="name" >
                              [<bean:write name="country" property="name" />]
                        </logic:present>
                        <logic:present name="region" property="name" >
                              [<bean:write name="region" property="name" />]
                        </logic:present>
                        <logic:present name="county" property="name" >
                              [<bean:write name="county" property="name" />]
                        </logic:present>
                        <logic:present name="town" property="name" >
                              [<bean:write name="town" property="name" />]
                        </logic:present>
                        <logic:present name="village" property="name" >
                              [<bean:write name="village" property="name" />]
                        </logic:present>
                        </html:radio>
                        </td>
                  </tr>
            </logic:iterate>
            </logic:present>

            <tr bgcolor="#FFFFFF">
                  <td class="text">
                  <br>
                  <img src=../images/arrow_blue.gif hspace="10"><trans:showPageMessage label="findloc.cannotfindyourloc" />&nbsp;&nbsp;&nbsp;
                  <html:link style="text-decoration=underline;font-weight:bold;" action="/location/browser.do" ><trans:showPageMessage label="findloc.browseloc" /></html:link>
                  <br>
                  <br>
                  </td>
            </tr>

            <tr bgcolor="#f9f9f9">
                  <td align="center" bgcolor="#f9f9f9">
                  <input type="hidden" name="action" value="" />
                  <input type="button"
                        class="butonsave"
                        onclick="this.form.action.value='save';this.form.submit();"
                        value="<trans:showPageMessage label="browseloc.saveselected" hide_link="true" />" />
                  <input type="button"
                        class="butonsave"
                        onclick="javascript:window.close();"
                        value="<trans:showPageMessage label="browseloc.cancel" hide_link="true" />" />
                  </td>
            </tr>
      </table><trans:showPageMessage label="translator.showhiddentags"/>
      </html:form>
</body>
</html:html>
